package cn.tedu.luban.worker.main.mapper;

import cn.tedu.luban.worker.protocol.dos.WorkerDO;
import cn.tedu.luban.worker.protocol.query.WorkerDBPageQuery;

import java.util.List;

public interface WorkerMapper {
    void deleteByUserId(Long userId);

    void insert(WorkerDO workerDO);

    WorkerDO selectByUserId(Long userId);

    Long countWorker(WorkerDBPageQuery workerDBPageQuery);

    List<WorkerDO> selectWorkers(WorkerDBPageQuery workerDBPageQuery);

    void updateAuditStatus(WorkerDO workerDO);

    void updateCertStatus(WorkerDO workerDO);
}
